<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../utils/flexible.js"></script>
</head>
<style>
*{margin:0;
    padding:0;
   box-sizing: border-box;
   list-style: none;
   
   }
   ::-webkit-scrollbar {
        display:none};
   a{display:block;}*
     #header{
       background:#1d6dff;
       height: 1.3333rem;
       /* padding: .1333rem; */
       text-align: center;
       overflow: hidden;
   }

   #header .left {
       margin-top: .1333rem;
       text-align: center;
       font-size: .5333rem;
       color: #fff;
       float: left;
       text-decoration: none;
   }
   #header h4{
       display: inline-block;
       text-align: center;
       font-size: .5333rem;

       font-weight: bolder;
       color: #fff;
       margin-top: .2667rem;
       margin-bottom: .2667rem;
   }
    #header .right {
        float: right;
        padding: 0.1867rem;
   }
   #header .right a{
       color: #666;
       text-decoration: none;
   }
   #header .right a img{
       height: .9067rem;
       vertical-align: center;
   }
   .footer{
           background-color:#f4f4f4;
       }
       .footer .more{
           height: 1.3333rem;
           padding: .2667rem;
       }
       .footer .more a{
           display: block;
           font-size: .3467rem;
           line-height: .8rem;
           text-align: center;
           border-radius: .1333rem;
           border: .0267rem solid #ddd;
       }
       .footer .brand{
           background-color: #1d6dff;
           margin-top: .2667rem;
           margin-bottom: .16rem;
       }
       .footer .brand span{
           color: #fff;
           display: inline-block;
           font: bolder .48rem/.9333rem;
           padding-left: .2667rem;
       }
    .footer .login .container{
           padding: 0 .4rem;
           margin: 0 auto;
       }
       .footer .login .container.row{
           height: .96rem;
           margin-top: .2667rem;
           border-top: .0267rem solid #c4c4c4;
           margin: 0 -0.4rem;
       }
       .footer .login .container.row div{
           height: .88rem;
           line-height: .88rem;
           text-align: center;
           font-size: .3733rem;
           border-right: .0267rem solid #c4c4c4;
           float: left;
       }
       .footer .login .container.row .f1{
           width: 25%;
       }
       .footer .login .container.row .f1{
           width: 33.333333%;
       }
       .footer .login .container.row .f1{
           width: 41.66666667%;
       }
       .footer .login .content{
           text-align: center;
           padding: .2667rem;
       }
       .footer .login .content p a{
           color: #666;
           text-decoration: none;
       }
</style>
<body>
    <header id="header">
        <a href="#" class="left">
            〈
        </a>
        <h4>
            白菜价-淘宝内部优惠券
        </h4>
         <div class="right">
            <a href="#"><img src="../images/header_app.png" alt="" width="34"></a>    
         </div>
    </header>
    <div class="box">
        <ul class="content"></ul>
    </div>
    <div class="footer">
        <div class="more">
            <a href="#">更多优惠>></a>
        </div>
        <div class="brand">
            <span>品牌排行</span>
        </div>
        <div class="login">
        <div class="container">
            <div class="row">
              <a href="#" class="d1">登入</a>
              <a href="#" class="d2">注册</a>
              <a href="#" class="d3">返回顶部</a>
            </div>
        </div>
        </div>
        <div class="content">
            <p>
                <a href="#">手机app下载</a>
                <a href="#">万锋智慧商城手机版</a>
                "--掌上比价平台"
            </p>
            <p>chst.vip:8081/com</p>
        </div>
    </div>
</body>
</html>
<script src="../utils/utils.js"></script>
<script>
    let cc=document.querySelector('.content')
    let el=""
    fetch('http://chst.vip:1234/api/getsitenav')
    .then(body=>body.json())
    .then(res=>{
        console.log(res)
        let r=res.result
        r.forEach(item=>{
          el+=`
            <li>
               <img src=${item.navImg}>
               <span>${item.navTitle}</span>
            </li>
          `
        })
      cc.innerHTML=el
    })
</script>
